<!DOCTYPE html5>
<html>
    <head>
        {include file="public/header"}
        <title>文章查看</title>
    </head>
    <body>
        <div class="wrapper">
            {include file="public/nav"}  
            <div id="page-wrapper" style="min-height: 325px;">
                <div class="row">
	                <div class="col-lg-12">
	                    <h1 class="page-header">文章查看</h1>
	                </div>
	                <!-- /.col-lg-12 -->
                </div>
                <!-- /.row -->
                <div class="row">
	                <div class="col-lg-12" >
                        <div id="arttb">
                            <table width="100%" class="table table-striped table-bordered table-hover">
                                <thead>
                                    <tr>
                                        <th>编号</th>
                                        <th>排序</th>
                                        <th>名称</th>
                                        <th>所属类</th>
                                        <th>开启/关闭</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {volist name="data" id="vo"}
                                    <tr>
                                        <td>{$vo.art_id}</td>
                                        <td>{$vo.art_order}</td>
                                        <td>{$vo.art_title}</td>
                                        <td>{$cat[$vo.art_cat_id]}</td>
                                        <td>
                                            {switch name="vo.art_status"}
                                            {case value="0"}可用{/case}
                                            {case value="1"}禁用{/case}
                                            {/switch}
                                        </td>
                                        <td>
                                            <button type="button" class="btn btn-danger btn-xs">删除</button>
                                            <a href="edit.html?id={$vo.art_id}" type="button" class="btn btn-success btn-xs" target="_blank">修改</a>
                                        </td>

                                    </tr>
                                    {/volist}
                                </tbody>
                            </table>
                        </div>
                        {$page}                    
	                </div>
                </div>
            </div>
        </div>
        {include file="public/javascript"}
    </body>
</html>
